package com.ruoyi.flowable.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 单提交数据业务对象 flow_form_data
 *
 * @author zxw
 * @date 2023-03-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class FormDataBo extends BaseEntity {

    /**
     * 数据ID
     */
    @NotNull(message = "数据ID不能为空", groups = { EditGroup.class })
    private Long dataId;

    /**
     * 提交人
     */
    @NotBlank(message = "提交人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userName;

    /**
     * 流程实例ID
     */
    @NotNull(message = "流程实例ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String procInstId;

    /**
     * 事项版本
     */
    @NotNull(message = "事项版本不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long appVersionId;

    /**
     * 表单ID
     */
    @NotNull(message = "表单ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long formId;

    /**
     * 表单版本
     */
    @NotNull(message = "表单版本不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long formVersionId;

    /**
     * 提交数据
     */
    @NotBlank(message = "提交数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private String submitData;


}
